package lesson14;

public class PersonDemo {

	public static void main(String[] args) 
	{
	int x = 3;
	String s = new String();
	
	Person ivan = new Person();
	Person maria = new Person();
	
	ivan.name = "Ivan";
	ivan.personalNumber = "8888888888";
	ivan.sex = 'm';
	ivan.weight = 100;
	
	maria.name = "Maria";
	maria.personalNumber = "1111111111";
	maria.sex = 'f';
	maria.weight = 77;
	System.out.println(ivan.name);
	System.out.println(ivan.personalNumber);
	System.out.println(ivan.sex);
	System.out.println(ivan.weight);
	
	System.out.println(maria.name);
	System.out.println(maria.personalNumber);
	System.out.println(maria.sex);
	System.out.println(maria.weight);
	
	
	ivan.eat(10);
	maria.walk();
	
	System.out.println("Ivan's health  = " + ivan.health);
	System.out.println("Ivan's hunger = " + ivan.starvationStatus);
	System.out.println("Maria's health  = " + maria.health);
	System.out.println("Maria's hunger = " + maria.starvationStatus);
	}

}
